// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "UI/Core/RuleWidget.h"
#include "UI_Inventory.generated.h"

class UUI_InventorySlot;
/**
 * 
 */
UCLASS()
class TF_20240717_API UUI_Inventory : public URuleWidget
{
	GENERATED_BODY()

	UPROPERTY(meta=(BindWidget))
	class UUniformGridPanel* SlotArrayInventory;

	UPROPERTY(EditDefaultsOnly, Category=UI)
	TSubclassOf<UUI_InventorySlot> InventorySlotClass;
	
	TArray<UUI_InventorySlot*> InventorySlotArray;
	
public:
	virtual void NativeConstruct() override;

	void LayoutInventorySlot(int32 ColumnNumber, int32 RowNumber);
};
